TopicService = require('../service/TopicService')

exports.toIndex = ->
    query = @request.query
    r = yield from TopicService.gListTopics(query)
    this.render('index', {r})